<template>
  <div class="list">
    <pannle title="添加账号">
       <el-form ref="form" :model="fromData" label-width="80px">
   <el-form-item label="账号">
    <el-input v-model="fromData.account"></el-input>
  </el-form-item>
   <el-form-item label="密码">
    <el-input v-model="fromData.password"></el-input>
  </el-form-item>
  <el-form-item label="用户组">
    <el-select v-model="fromData.userGroup" placeholder="请选择用户组">
      <el-option label="普通管理员" value="普通管理员"></el-option>
      <el-option label="超级管理员" value="普通管理员"></el-option>
    </el-select>
  </el-form-item>
    <el-form-item>
    <el-button type="primary" @click="addAccont(account,password,userGroup)">添加</el-button>
    <el-button>重置</el-button>
  </el-form-item>
  </el-form>
    </pannle>
  </div>
</template>

<script>
import Pannle from "@/components/Pannle.vue";
import {userAdd} from '../../api/user'
export default {
  data() {
    return {
        fromData:{
            account:'',
            password:'',
            userGroup:''
        }
    };
  },
  components: {
    Pannle,
  },
  methods:{
    //   添加
     addAccont(){
        console.log(123123);
        
      }
  }
};
</script>

<style lang="less" scoped>
.list {
  width: 100%;
  height: 100%;
}
.el-input{
    width: 15rem;
    border: 1px solid black;
}
.el-select{
     width: 15rem;
    border: 1px solid black;
}
</style>